package com.py.custom.tms.application.jvm.classload;

public class MyTest11 {

    public static void main(String[] args) {
        MyChild11.doSomething();
        System.out.println("------");
        System.out.println(MyChild11.a);
    }
}

class MyParent11 {

    public static int a = 3;

    static {
        System.out.println("MyParent11 static block");
    }

    public static void doSomething() {
        System.out.println("do something");
    }
}

class MyChild11 extends MyParent11 {

    public static int b = 3;

    static {
        System.out.println("MyChild11 static block");
    }
}
